package com.comusee.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.comusee.base.BaseDao;
import com.comusee.dao.UserDao;

@Repository("userDao")
@Transactional
public class UserDaoImpl extends BaseDao implements UserDao{
    
	public List<Map<String,Object>> getUserByUsername(String username) {
		return jdbcTemplate.queryForList("select username, password, realname from cuser where enable = 1 and username = ? ;", new Object[]{username}, new int[]{java.sql.Types.VARCHAR});
	}

}
